package com.whut.service.impl;

import com.whut.mapper.PostinfoMapper;
import com.whut.model.Postinfo;
import com.whut.service.PostService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;

import javax.annotation.Resource;
import java.util.List;

@Service("postService")
public class PostServiceImp implements PostService {
    @Resource
    PostinfoMapper postinfoMapper;

    @Override
    public Object getServeType() {
        List<Postinfo> postinfoList = postinfoMapper.getAllServeType();
        return postinfoList;
    }
}
